import { withInstall } from '@ibiz-template/vue3-util';
import { App } from 'vue';
import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { ListTextProvider } from './provider';
import { ListText } from './list-text';

export const IBizListText = withInstall(ListText, function (v: App) {
  v.component(ListText.name, ListText);
  registerPanelItemProvider(
    'LIST_ITEMRENDER_TEXT_BRACKET_REPLACE',
    () => new ListTextProvider(),
  );
  registerPanelItemProvider(
    'LIST_ITEMRENDER_TextBracketReplace',
    () => new ListTextProvider(),
  );
});
export default IBizListText;
